package com.paperyy.module.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.paperyy.module.bean.User;
import com.paperyy.module.bean.Vip;
import com.paperyy.module.dao.VipDao;
import com.paperyy.module.service.VipService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class VipServiceImpl implements VipService {
    @Autowired
    private VipDao vipDao;

    //查询所有套餐
    public List<Vip> findAll() {
        List<Vip> list = vipDao.selectList(new LambdaQueryWrapper<>());
        return list;
    }

    //id查询
    public Vip findVip(Integer id) {
        Vip vip = vipDao.selectById(id);
        return vip;
    }

}
